﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class D_mineSpriteConfig : ScriptableObject {
    public List<D_mineSproteData> d_MineSproteDatas;

    public Sprite GetSpriteWithName(string name) {
        foreach (var item in d_MineSproteDatas)
        {
            if (item.name.Equals(name)) return item.sprite;
        }
        return null;
    }
}

[System.Serializable]
public class D_mineSproteData {
    public Sprite sprite;
    public string name;
}
